insuranceApp.config(function ($stateProvider, $urlRouterProvider) {
    $urlRouterProvider
        .when('', '/agreement')
    $stateProvider
        .state('agreement', {
            title: '领取邀请码',
            url: '/agreement',
            views: {
                'mainView': {
                    templateUrl: 'templates/manager/agreement/agreement.html',
                    controller: 'agreementCtrl'
                }
            }
        })
        .state('validate', {
            title: '邀请码',
            url: '/validate',
            views: {
                'mainView': {
                    templateUrl: 'templates/manager/validate/validate.html',
                    controller: 'validateCtrl'
                }
            }
        })
        .state('nomanager', {
            title: '提示',
            url: '/nomanager',
            views: {
                'mainView': {
                    templateUrl: 'templates/volunteer/nomanager.html',
                    controller: 'nomanagerCtrl'
                }
            }
        })
        .state('setvalidate', {
            title: '志愿者保险保障',
            url: '/setvalidate',
            views: {
                'mainView': {
                    templateUrl: 'templates/manager/setvalidate/setvalidate.html',
                    controller: 'setvalidateCtrl'
                }
            }
        })
        .state('message', {
            title: '邀请码',
            url: '/message',
            views: {
                'mainView': {
                    templateUrl: 'templates/manager/message/message.html',
                    controller: 'messageCtrl'
                }
            }
        })
        .state('agreeManage', {
            title: '邀请码',
            url: '/agreeManage',
            views: {
                'mainView': {
                    templateUrl: 'templates/manager/agreeManage/agreeManage.html',
                    controller: 'agreeManageCtrl'
                }
            }
        })
})